package io.demo.builderss;

import static java.lang.System.out;

/**
 * @author create by zhangpengfei at 2021/9/29 17:59
 */

public class Main {
    public static void main(String [] args){
        Clothes jacket = new Jacket();
        Clothes buttons = new Buttons(jacket);
        Clothes hat = new Hat(buttons);

        out.println("Clothes: " + hat.getDesc() + ", cost " + hat.cost() + "$");

        Clothes pants = new Pants();
        Clothes belt = new Belt(pants);

        out.println("Clothes: " + belt.getDesc() + ", cost " + belt.cost() + "$");
    }
}
